package com.wzc.hc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wzc.hc.entity.po.InvoiceTitle;
import com.wzc.hc.service.InvoiceTitleService;
import com.wzc.hc.mapper.InvoiceTitleMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 甲方
* @description 针对表【Invoice_title】的数据库操作Service实现
* @createDate 2025-03-05 18:21:52
*/
@Service
public class InvoiceTitleServiceImpl extends ServiceImpl<InvoiceTitleMapper, InvoiceTitle>
    implements InvoiceTitleService{


    @Override
    public List<InvoiceTitle> getInvoiceTitlesByBuildingAndOwnerName(String building, String ownerName) {
        LambdaQueryWrapper<InvoiceTitle> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(InvoiceTitle::getBuilding, building)
                .eq(InvoiceTitle::getOwnerName, ownerName);
        return list(wrapper);
    }

}




